%sigmoid函数
function r = sigmoid(x)
    r = 1 ./ (1 + exp(-x));
end